![]() |
PATH![]() |
![]() ![]() |
The following Window Manager functions for collapsing windows are new with Appearance Manager 1.0:
Collapses or expands a window to its title bar .
pascal OSStatus CollapseWindow (
WindowPtr inWindow,
Boolean inCollapseIt);
The CollapseWindow function tells the Window Manager to collapse or expand a window depending upon the value passed in the inCollapseIt parameter. Only window definition functions that return the feature bit kWindowCanCollapse in response to a kWindowGetFeatures message support this function; see GetWindowFeatures.
Collapses or expands all collapsable windows in an application.
pascal OSStatus CollapseAllWindows (Boolean inCollapseEm);
Only window definition functions that return the feature bit kWindowCanCollapse in response to a kWindowGetFeatures message support the CollapseAllWindows function; see GetWindowFeatures.
Determines whether a window is currently collapsed.
pascal Boolean IsWindowCollapsed (WindowPtr inWindow);
Only window definition functions that return the feature bit kWindowCanCollapse in response to a kWindowGetFeatures message support this function; see GetWindowFeatures. Your window definition function should call IsWindowCollapsed to determine whether or not a window is collapsed, so you can modify its structure and content regions as appropriate. Typically, a window's content region is empty in a collapsed state.
Determines whether a window can be collapsed.
pascal Boolean IsWindowCollapsable (WindowPtr inWindow);
Your program can call the IsWindowCollapsable function to determine if a given window can be programmatically collapsed by calling the function CollapseWindow. Whether a window is collapsable is determined by whether the window definition function returns the feature bit kWindowCanCollapse in response to a kWindowGetFeatures message.